export function isMobile() {
	// #ifdef H5
		const userAgent = navigator.userAgent.toLowerCase();
		return /ipad|iphone|midp|rv:1.2.3.4|ucweb|android|windows ce|windows mobile/.test(userAgent);
	// #endif
	
	return true;
}

export function showShareMenuInWx() {
	// #ifdef MP-WEIXIN
	wx.showShareMenu({ 
	  withShareTicket:true,
	  menu:['shareAppMessage','shareTimeline']
	})
	// #endif
}

export function toLogin() {
	//#ifdef MP-ALIPAY || MP-WEIXIN
	uni.navigateTo({
		url:'/pages/login/selection'
	})
	//#endif
	//#ifdef WEB
	uni.navigateTo({
		url:'/pages/login/index'
	})
	//#endif
}